Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Dockerfile CMD to correct instance manager binary name. #664

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aznashwan
Copy link

Which issue(s) this PR fixes:

None.
Considering the longhorn-instance-manager executable requires at least some arguments to it so everyone who's ever used this image overrode CMD, this is not really an issue in practice, it's only incorrect if you pass no arguments.

What this PR does / why we need it:

Because the current CMD arg which gets passed to tini doesn't exist, leading to this error if you run the image plainly:

$ docker run -it longhornio/longhorn-instance-manager:v1.7.0
[FATAL tini (7)] exec longhorn failed: No such file or directory

Special notes for your reviewer:

Binary built as longhorn-instance-manager here.

Binary added to Docker image under the same longhorn-instance-manager name here.

I am 95% sure the cause of this is someone just copy-pasting the Engine Dockerfile, whose binary is indeed plainly named longhorn.

Additional documentation or context

This patch fixes the CMD in the longhorn-instance-manager container
image.

Signed-off-by: Nashwan Azhari <nazhari@cloudbasesolutions.com>
@aznashwan
Copy link
Author

I am unfortunately unsure what the commit message linter wants from me, but I'll gladly take suggestions on how to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant